Examples

1st example search with keywords

EARTH 4K - RELAXATION FILM - PEACEFUL RELAXIN ..
EARTH 4K - RELAXATION FILM - PEACEFUL RELAXIN ..
FLYING OVER PARADISE 4K UHD - RELAXING MUSIC  ..
FLYING OVER PARADISE 4K UHD - RELAXING MUSIC ..
3 HOURS OF AMAZING NATURE SCENERY & RELAX ..
3 HOURS OF AMAZING NATURE SCENERY & RELAX ..
INCREDIBLE 4K NATURE SCENES NARRATED BY DAVID ..
INCREDIBLE 4K NATURE SCENES NARRATED BY DAVID ..
COSTA RICA IN 4K 60FPS HDR (ULTRA HD)
COSTA RICA IN 4K 60FPS HDR (ULTRA HD)
THE ALPS, AMAZING BEAUTIFUL NATURE WITH SOOTH ..
THE ALPS, AMAZING BEAUTIFUL NATURE WITH SOOTH ..
MOST BEAUTIFUL PLACES IN THE WORLD 12K VIDEO  ..
MOST BEAUTIFUL PLACES IN THE WORLD 12K VIDEO ..
FANTASTIC PLACES ON EARTH HDR 4K 60FPS  DOLBY ..
FANTASTIC PLACES ON EARTH HDR 4K 60FPS DOLBY ..
THE BREATHTAKING BEAUTY OF NATURE   FREE HD V ..
THE BREATHTAKING BEAUTY OF NATURE FREE HD V ..
BEAUTIFUL NATURE VIDEO IN 4K (ULTRA HD) - AUT ..
BEAUTIFUL NATURE VIDEO IN 4K (ULTRA HD) - AUT ..
NATURE RELAXATION FILM 4K - BEAUTIFUL RELAXIN ..
NATURE RELAXATION FILM 4K - BEAUTIFUL RELAXIN ..
FOREST 4K 🌲 AMERICAN NATURE RELAXATION FILM - ..
FOREST 4K 🌲 AMERICAN NATURE RELAXATION FILM - ..
SWITZERLAND • 4K RELAXATION FILM: WINTER TO S ..
SWITZERLAND • 4K RELAXATION FILM: WINTER TO S ..
6 HOURS FANTASTIC VIEWS OF THE EARTH 4K WITH  ..
6 HOURS FANTASTIC VIEWS OF THE EARTH 4K WITH ..
THE MOST BEAUTIFUL NATURAL WONDERS OF THE WOR ..
THE MOST BEAUTIFUL NATURAL WONDERS OF THE WOR ..
10 HOURS FANTASTIC VIEWS OF NATURE 4K WITH RE ..
10 HOURS FANTASTIC VIEWS OF NATURE 4K WITH RE ..
NORWAY 4K • SCENIC RELAXATION FILM WITH PEACE ..
NORWAY 4K • SCENIC RELAXATION FILM WITH PEACE ..
ULTIMATE WILD ANIMALS COLLECTION IN 8K ULTRA  ..
ULTIMATE WILD ANIMALS COLLECTION IN 8K ULTRA ..
NEW ZEALAND 4K - THE LAST PARADISE ON EARTH | ..
NEW ZEALAND 4K - THE LAST PARADISE ON EARTH | ..
ANIMALS OF THE WORLD 4K - SCENIC WILDLIFE FIL ..
ANIMALS OF THE WORLD 4K - SCENIC WILDLIFE FIL ..
PARADISE 8K VIDEO ULTRA HD WITH SOFT PIANO MU ..
PARADISE 8K VIDEO ULTRA HD WITH SOFT PIANO MU ..
ANIMALS OF AMAZON RAINFOREST 8K ULTRA HD – JU ..
ANIMALS OF AMAZON RAINFOREST 8K ULTRA HD – JU ..
NORWAY AMAZING NATURE 4K - THE FIRST 4K ULTRA ..
NORWAY AMAZING NATURE 4K - THE FIRST 4K ULTRA ..
FOREST 4K • NATURE RELAXATION FILM • PEACEFUL ..
FOREST 4K • NATURE RELAXATION FILM • PEACEFUL ..
NATURE RELAXATION FILM 4K - PEACEFUL RELAXING ..
NATURE RELAXATION FILM 4K - PEACEFUL RELAXING ..
THE COLORS OF THE OCEAN 8K ULTRA HD - THE BES ..
THE COLORS OF THE OCEAN 8K ULTRA HD - THE BES ..
NATURE RELAXATION FILM 4K HDR - PEACEFUL RELA ..
NATURE RELAXATION FILM 4K HDR - PEACEFUL RELA ..
BEST OF DOLBY VISION 12K HDR 120FPS
BEST OF DOLBY VISION 12K HDR 120FPS
ANIMALS OF AMAZON 4K - ANIMALS THAT CALL THE  ..
ANIMALS OF AMAZON 4K - ANIMALS THAT CALL THE ..
NATURE/4K ULTRA HD/NATURAL SCENES 4K/NATURE&# ..
NATURE/4K ULTRA HD/NATURAL SCENES 4K/NATURE&# ..
NEPAL4K - SCENIC RELAXATION FILM WITH PEACEFU ..
NEPAL4K - SCENIC RELAXATION FILM WITH PEACEFU ..
BEAUTIFUL NATURE - INSPUR FRESH FRUIT WONDERF ..
BEAUTIFUL NATURE - INSPUR FRESH FRUIT WONDERF ..
COLOURFUL DAHLIA FLOWERS | BEAUTIFUL FLOWER G ..
COLOURFUL DAHLIA FLOWERS | BEAUTIFUL FLOWER G ..
THE DEEP OCEAN | 8K TV ULTRA HD / FULL DOCUME ..
THE DEEP OCEAN | 8K TV ULTRA HD / FULL DOCUME ..
EXTRAORDINARY NATURE SCENES IN 4K | BBC EARTH
EXTRAORDINARY NATURE SCENES IN 4K | BBC EARTH
AMAZON 4K - THE WORLD’S LARGEST TROPICAL RAIN ..
AMAZON 4K - THE WORLD’S LARGEST TROPICAL RAIN ..
INCREDIBLE WILDLIFE IN STUNNING 16K HDR 120FP ..
INCREDIBLE WILDLIFE IN STUNNING 16K HDR 120FP ..
ONLY BEST 8K HDR 120 FPS - 8K VIDEO ULTRA HD  ..
ONLY BEST 8K HDR 120 FPS - 8K VIDEO ULTRA HD ..
LET’S FEEL THE NATURE IN SLO-MO 💗#WILDLIFEPHO ..
LET’S FEEL THE NATURE IN SLO-MO 💗#WILDLIFEPHO ..
RELAXING RIVER SOUNDS - PEACEFUL FOREST RIVER ..
RELAXING RIVER SOUNDS - PEACEFUL FOREST RIVER ..
FLYING OVER ITALY (4K UHD) - RELAXING MUSIC A ..
FLYING OVER ITALY (4K UHD) - RELAXING MUSIC A ..
AROUND THE WORLD ANIMALS - 8K (60FPS) ULTRA H ..
AROUND THE WORLD ANIMALS - 8K (60FPS) ULTRA H ..
AMAZING COLORS OF NATURE IN 4K HDR 60FPS - TR ..
AMAZING COLORS OF NATURE IN 4K HDR 60FPS - TR ..
PEACEFUL NATURE LIFE | WHICH PLACE YOU CHOOSE ..
PEACEFUL NATURE LIFE | WHICH PLACE YOU CHOOSE ..
INDIA 4K - NATURE RELAXATION FILM - PEACEFUL  ..
INDIA 4K - NATURE RELAXATION FILM - PEACEFUL ..
UNIQUE ANIMALS COLLECTION - 8K (60FPS) ULTRA  ..
UNIQUE ANIMALS COLLECTION - 8K (60FPS) ULTRA ..
AMAZON 4K - THE WORLD’S LARGEST TROPICAL RAIN ..
AMAZON 4K - THE WORLD’S LARGEST TROPICAL RAIN ..
🔴 WILDLIFE (4K UHD) 24/7  - RELAXING MUSIC WI ..
🔴 WILDLIFE (4K UHD) 24/7 - RELAXING MUSIC WI ..
16K VIDEO ULTRA HD DOLBY VISION HDR - CALMING ..
16K VIDEO ULTRA HD DOLBY VISION HDR - CALMING ..
THE OCEAN (4K ULTRAHD)- RELAXATION FILM - PEA ..
THE OCEAN (4K ULTRAHD)- RELAXATION FILM - PEA ..

2nd example username, in this case rpoland

‘SULTANS OF SWING’ -PATRICK HINDS. #ACOUSTICGUITAR ..
‘SULTANS OF SWING’ -PATRICK HINDS. #ACOUSTICGUITAR ..
“SULTANS OF SWING”-PATRICK HINDS
“SULTANS OF SWING”-PATRICK HINDS
TO KILL A UNICORN-NICK JOHNSON
TO KILL A UNICORN-NICK JOHNSON
PETER CILUZZI - WHAT THEY LEFT BEHIND
PETER CILUZZI - WHAT THEY LEFT BEHIND
WES PARKER - BOTTLED TIME (CARDINAL ELEGY)
WES PARKER - BOTTLED TIME (CARDINAL ELEGY)
NICK JOHNSON - COCAINE SUSTAIN
NICK JOHNSON - COCAINE SUSTAIN
JIMMY WAHLSTEEN - THE DAY BREAKS WHEN YOU WAKE
JIMMY WAHLSTEEN - THE DAY BREAKS WHEN YOU WAKE
R.D. KING (LIVE) - (CANDYRAT CONCERT)
R.D. KING (LIVE) - (CANDYRAT CONCERT)
NATHAN VALLEE - CONVERGENCES
NATHAN VALLEE - CONVERGENCES
ANIELLO MONTELLA - LOVELY HUG
ANIELLO MONTELLA - LOVELY HUG
ALEX ANDERSON - PARTING CLOUDS
ALEX ANDERSON - PARTING CLOUDS
DIMENSION EXPLOSION - 김화종(HWAJONG KIM)
DIMENSION EXPLOSION - 김화종(HWAJONG KIM)
SAMAĂŤL - THE MASK (SOLO ACOUSTIC GUITAR)
SAMAĂŤL - THE MASK (SOLO ACOUSTIC GUITAR)
ALEX ANDERSON - SHADOWLIGHT SUITE (INDIEGOGO)
ALEX ANDERSON - SHADOWLIGHT SUITE (INDIEGOGO)
IAN ETHAN CASE - OPENLAND TRIO (LIVE) - (CANDYRAT  ..
IAN ETHAN CASE - OPENLAND TRIO (LIVE) - (CANDYRAT ..
PIRATES OF THE CARIBBEAN - HWAJONG KIM X JIHO KIM  ..
PIRATES OF THE CARIBBEAN - HWAJONG KIM X JIHO KIM ..
ANCIENT WHISPERS - SAMAĂŤL
ANCIENT WHISPERS - SAMAĂŤL
MIKAEL EKSTRAND - RAT RACE
MIKAEL EKSTRAND - RAT RACE
DANIEL VOTH - CAROUSEL (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - CAROUSEL (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - OMEGA (FEAT. ANUP SASTRY, NICK HARRI ..
DANIEL VOTH - OMEGA (FEAT. ANUP SASTRY, NICK HARRI ..
DANIEL VOTH - HOPE SPRINGS ETERNAL (FEAT. MERETHE  ..
DANIEL VOTH - HOPE SPRINGS ETERNAL (FEAT. MERETHE ..
DANIEL VOTH - THE MOMENT (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - THE MOMENT (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - NE PLUS ULTRA (FEAT. MERETHE SOLTVED ..
DANIEL VOTH - NE PLUS ULTRA (FEAT. MERETHE SOLTVED ..
DANIEL VOTH - IN THE ZONE (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - IN THE ZONE (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - FLOW (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - FLOW (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - BLINK OF AN EYE (FEAT. JOE MAXWELL)
DANIEL VOTH - BLINK OF AN EYE (FEAT. JOE MAXWELL)
R.D. KING - FLICKER - ACOUSTIC GUITAR
R.D. KING - FLICKER - ACOUSTIC GUITAR
DANIEL VOTH - HARMONIC DREAMS (FULL RECORD)
DANIEL VOTH - HARMONIC DREAMS (FULL RECORD)
ANIELLO MONTELLA - RICHARD'S SONG
ANIELLO MONTELLA - RICHARD'S SONG
DANIEL VOTH - ON ANGEL’S WINGS
DANIEL VOTH - ON ANGEL’S WINGS
DANIEL VOTH - VALHALLA (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - VALHALLA (FEAT. MERETHE SOLTVEDT)
R.D. KING (LIVE) - (CANDYRAT CONCERT)
R.D. KING (LIVE) - (CANDYRAT CONCERT)
R.D. KING - CONTINUA
R.D. KING - CONTINUA
ADRIAN BELLUE - MISCHA
ADRIAN BELLUE - MISCHA
ALEX BOLDIN - STARRY SKY - FINGERSTYLE GUITAR
ALEX BOLDIN - STARRY SKY - FINGERSTYLE GUITAR
DUSTIN FURLOW - SERENE (OFFICIAL)
DUSTIN FURLOW - SERENE (OFFICIAL)
DANIEL CAME - THE EMPTY CHAIR
DANIEL CAME - THE EMPTY CHAIR
GIUSEPPE SESSA - ANNE & ROSE
GIUSEPPE SESSA - ANNE & ROSE
SEAN DE BURCA - REVENANT - HARP GUITAR
SEAN DE BURCA - REVENANT - HARP GUITAR
R.D. KING (LIVE) - (CANDYRAT CONCERT)
R.D. KING (LIVE) - (CANDYRAT CONCERT)
ADAM MALETICH - TURBULENCE
ADAM MALETICH - TURBULENCE
JACOB SEYER - MOTHERSHIP (4K)
JACOB SEYER - MOTHERSHIP (4K)
SHOCKWAVE - TATUM MARSHALL & PAT HINDS - FINGERSTY ..
SHOCKWAVE - TATUM MARSHALL & PAT HINDS - FINGERSTY ..
FINGERSTYLE FESTIVAL 2024
FINGERSTYLE FESTIVAL 2024
ALEX ANDERSON - WHAT DREAMS MAY COME - HARP GUITAR
ALEX ANDERSON - WHAT DREAMS MAY COME - HARP GUITAR
ADRIAN BELLUE - DEVILHANDS
ADRIAN BELLUE - DEVILHANDS
ADAM MALETICH - THE RIVER AND THE SEA
ADAM MALETICH - THE RIVER AND THE SEA
SEAN HALL - LETTING GO (LIVINGROOM SESSIONS)
SEAN HALL - LETTING GO (LIVINGROOM SESSIONS)
SEAN DE BURCA - REANIMATE - HARP GUITAR
SEAN DE BURCA - REANIMATE - HARP GUITAR
JOHN MCLAREN - INNOCENCE
JOHN MCLAREN - INNOCENCE

Code and options

include_once('class/class.youtubelist.php');
//First set the type, keywords, username, channel or playlist
$video = new youtubelist('keywords');
//Default set_keywords, set_username, set_channel or set_playlist (in this example set_keywords)
$video->set_keywords('HD nature');
// -- Here your youtube API key
$video->set_api('Here your youtube API key');
//Max results
$video->set_max(50);
// --set sorting order: relevance, date , rating , title , videoCount , viewCount or none; default: relevance
// --At this moment sorting seems only to work with a search
$video->set_order('relevance');
//--Cache the feed
$video->set_cachexml(true);
// --How long must the cach been saved (in seconds)
$video->set_cachelife(86400);
// --Set where to store xml files
$video->set_xmlpath('./cache/');
// --Set safesearch possible: none, moderate, strict; default: strict
$video->set_safeSearch('none');
// --OPTIONAL - Set lang; codes can be found here http://www.loc.gov/standards/iso639-2/php/code_list.php row ISO 639-1 Code
// --If not set all languages will appear in the results
$video->set_lang('EN');
// --OPTIONAL - Search only 3d. Set to any, 2d or 3d.
$video->set_3d('3d');
// --OPTIONAL - Search HD. any, high or standard.
$video->set_hd('high');
// --OPTIONAL - Search for license. possible: cc, youtube. Only used for the search option or don't set.
$video->set_license('youtube');
// --OPTIONAL - Search for duration. possible: any, short, medium, long. Only used for the search option or don't set.v $video->set_duration('long');
// --OPTIONAL - Set length title and description text
$video->set_descriptionlength(300);
// --OPTIONAL - Make the description first character uppercase and the rest lowercase - default is true
$video->set_descriptioncap (true);
$video->set_titlelength(45);
// --OPTIONAL - Set the title all character's uppercase - default is true
$video->set_titlecap (true);
// --OPTIONAL - Set debug true to show the url request (only in case of errors) - default is false
$video->set_debug (false);

Resctrictions

maximum 50 movies (youtube restriction)

API key youtube

  1. Create a Google Account

    If you do not already have a Google account, create one now as you'll be needing it.

  2. Create a new Google Project

    Go to your Google Console. Click on Projects in the upper-left, then Create Project and enter a project name & ID.

  3. Enable YouTube Data API V3

    Click on the project you have created if it hasn't already opened after creating. Then go to APIs & auth on the left. In the next screen, click on YouTube Data API V3. Enable the API by toggling the OFF button to ON.

  4. Get API Key

    Once you have enabled the API, click on Quota on the top. You can then click on API Access on the top left and create a new Browser Key. This key can be linked to a domain for security measures, but it is not obligated. Once you've created the key (it should look something like this: AIzaSyDmk3oxVjtu06AWRv60ADPvcYO9tvswzm8), copy it and use it as 'YouTube Data V3 API Key' option.